/*
 * @Author: Zhengxuan Ye
 * @Date: 2025-05-06 21:28:38
 * @Last Modified by: Zhengxuan Ye
 * @Last Modified time: 2025-05-06 21:28:38
 */

import express from 'express'
import { adminLogin, authenticateAdmin } from '../controllers/adminController.js'

const router = express.Router()

// 管理员登录路由
router.post('/login', adminLogin)

// 测试管理员认证路由
router.get('/test', authenticateAdmin, (req, res) => {
  res.status(200).json({ message: '管理员认证成功', admin: req.admin })
})

export default router
